import project from './modules/project'
import innerProject from './modules/innerProject'

const getters = {
    sidebar: state => state.app.sidebar,
    size: state => state.app.size,
    device: state => state.app.device,
    visitedViews: state => state.tagsView.visitedViews,
    cachedViews: state => state.tagsView.cachedViews,
    token: state => state.user.token,
    avatar: state => state.user.avatar,
    simpleName: state => state.user.simpleName,
    name: state => state.user.name,
    hasMsg: state => state.user.hasMsg,
    defaultIndex: state => state.user.defaultIndex,
    frontConfig: state => state.user.frontConfig,
    introduction: state => state.user.introduction,
    unReadCount: state => state.user.unReadCount,
    roles: state => state.user.roles,
    permissions: state => state.user.permissions,
    permission_routes: state => state.permission.routes,
    topbarRouters: state => state.permission.topbarRouters,
    defaultRoutes: state => state.permission.defaultRoutes,
    sidebarRouters: state => state.permission.sidebarRouters,
    projectId: state => state.project.projectId,
    projectList: state => state.project.projectList,
    projectDataList: state => state.project.projectDataList,
    identifier: state => state.innerProject.identifier,
    // 数据字典
    dict_datas: state => state.dict.dictDatas
}
export default getters
